<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<head>
<%@include file="../common/css.jsp"%>
<%@include file="../common/js.jsp"%>
    <title>作品列表-笔飞美术作品</title>
    <%@include file="../common/jspcommon.jsp"%>

  <link rel="stylesheet" type="text/css" href="/css/style_dz.css" />

<script type="text/javascript">
	function showArtist(id) {
		window.location.href="artist.htm?id="+id;
	}
	$(function(){
		$("#page").pager({
			pagenumber : "${modelMadeArtist.currentPage}",
			pagecount : "${modelMadeArtist.totalPage}",
			buttonClickCallback : function(page) {
				location.href = "/martist.htm?page="+ page;
			}
		});
	});
</script>

</head>
<body>
<div id="box">
    <%@include file="../common/header.jsp" %>
    <div id="main_div">
        <div class="site_map"><a href="/welcome.htm">首页</a> 》<a href="/made.htm">定制</a> 》作品列表</div>
        
        <div class="zp_nav_list">
            <ul>
                <li <c:if test="${classId eq 'a'}">class="cur"</c:if>><a href="martist.htm">全部分类</a></li>
                <c:forEach items="${classList }" var="cl">
               		 <li <c:if test="${classId eq cl.identifier}">class="cur"</c:if>><a href="martistcs.htm?classId=${cl.identifier }">${cl.name}</a></li>
                </c:forEach>
            </ul>
        </div>
        <div class="zp_list">
        		<c:forEach items="${modelMadeArtist.list}" var="artistList" >
		            
		            <div style="clear: both;"></div>
		            <h2 class="style4">${artistList.name}</h2>
		            <div style="clear: both;"></div>
		            <ul>
			            	<c:forEach items="${artistList.artPic}" var="picList" varStatus="vs">
			            		<c:if test="${vs.count <5}">
			                		<li>
			                		<a href="#" onclick="showArtist('${artistList.id}')">
			                		<img id="img_${artistList.id}_${vs.count}" src="${picList.imagePath}_300x200" alt="" onload="loadImage(this,200,122);"/></a>
			                		</li>
			                	</c:if>
			                	
			                </c:forEach>
		            </ul>
          	  </c:forEach>
        </div>
        <div style="clear:both"></div>
         <div class="page_div">
       		 <div id="page" class="h_page"></div>
        </div>
         <%@include file="../common/footer.jsp" %>
    </div>
</div>
</body>
</html>
